///////////////////////////////
//                           //
// Duel Weapon Mode Template //
//                           //
//  Made by: CaveCricket48   //
//                           //
///////////////////////////////


Be sure to follow the instructions carefully. To toggle the weapon mode in-game, hold the Pie Menu button and select the AI Gold Dig option.


-------------------------------
-Instructions for default weapons

This is for guns that are in the default content.

1. Change the name of the "Duel Weapon Mode Template.rte" folder to whatever you want.

2. Open up "SwitcherIndex.ini". Press (Ctrl) (H) and replace all "Duel Weapon Mode Template.rte" with the name of your mod folder. Save as "Index.ini"

3. Open up "SwitcherEmitters.ini". Press (Ctrl) (H) and replace all "Duel Weapon Mode Template.rte" with the name of your mod folder, and replace all "Duel Weapon Mode Template" with the name of the weapon that will be the main firing mode. Save and close.

5. Open up "SwitcherDevices.ini" and follow the directions (the text with the "//" before it).

6. Open up "Scripts/DeviceMain.lua". Replace "Particle Duel Weapon Mode Template Mode Switcher Main" with the name of the first particle in "SwitcherEmitters.ini". Then replace "Duel Weapon Mode Template.rte" with the name of your mod folder.

7. Open up "Scripts/DeviceAlt.lua". Replace "Particle Duel Weapon Mode Template Mode Switcher Alt" with the name of the second particle in "SwitcherEmitters.ini". Then replace "Duel Weapon Mode Template.rte" with the name of your mod folder.

8. Open up "Scripts/SwitcherMain.lua". Replace "Duel Weapon Mode Template Gun" and "Duel Weapon Mode Template Gun (Alt Fire)" with the PresetNames of the main and alt devices in "SwitcherDevices.ini". Then change "Duel Weapon Mode Template.rte" to the name of your mod folder and "HDFirearm" to the ClassName of your device main device.

9. Open up "Scripts/SwitcherAlt.lua". Replace "Duel Weapon Mode Template Gun (Alt Fire)" and "Duel Weapon Mode Template Gun" with the PresetNames of the alt and main devices in "SwitcherDevices.ini". Then change "Duel Weapon Mode Template.rte" to the name of your mod folder and "HDFirearm" to the ClassName of your device alt device.

And you're done!



-------------------------------
-Instructions for pre-made mod weapons

This is for guns that are already made, but aren't default content.

1. Move all contents of "Duel Weapon Mode Template.rte" into your mod folder.

2. Open up "SwitcherIndex.ini". Delete "DataModule" and Press (Ctrl) (H) and replace all "Duel Weapon Mode Template.rte" with the name of your mod folder. Save an close.

3. Open up "SwitcherEmitters.ini". Press (Ctrl) (H) and replace all "Duel Weapon Mode Template.rte" with the name of your mod folder, and replace all "Duel Weapon Mode Template" with the name of your weapon that will be the main firing mode. Save and close.

5. Open up "SwitcherDevices.ini" and follow the directions (the text with the "//" before it).

6. Open up your mod's "Index.ini" and add the line "IncludeFile = YOU MOD FOLDER NAME.rte/SwitcherIndex.ini"

7. Open up "Scripts/DeviceMain.lua". Replace "Particle Duel Weapon Mode Template Mode Switcher Main" with the name of the first particle in "SwitcherEmitters.ini". Then replace "Duel Weapon Mode Template.rte" with the name of your mod folder.

8. Open up "Scripts/DeviceAlt.lua". Replace "Particle Duel Weapon Mode Template Mode Switcher Alt" with the name of the second particle in "SwitcherEmitters.ini". Then replace "Duel Weapon Mode Template.rte" with the name of your mod folder.

9. Open up "Scripts/SwitcherMain.lua". Replace "Duel Weapon Mode Template Gun" and "Duel Weapon Mode Template Gun (Alt Fire)" with the PresetNames of the main and alt devices in "SwitcherDevices.ini". Then change "Duel Weapon Mode Template.rte" to the name of your mod folder and "HDFirearm" to the ClassName of your device main device.

10. Open up "Scripts/SwitcherAlt.lua". Replace "Duel Weapon Mode Template Gun (Alt Fire)" and "Duel Weapon Mode Template Gun" with the PresetNames of the alt and main devices in "SwitcherDevices.ini". Then change "Duel Weapon Mode Template.rte" to the name of your mod folder and "HDFirearm" to the ClassName of your device alt device.

And you're done!